package com.carlton.demo.service;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.carlton.demo.entity.User;

/**  
* <p>Title: TestService.java</p>  
* <p>Description: </p>   
* @author Carlton  
* @date 2018年10月8日 下午5:36:46
*/
@Service
public class TestService {

	public void testPrint() {
		System.out.println("this is testService");
	}

	@Cacheable
	public User gener(int id,String str,int dd) {
		User user = new User();
		user.setAge(555);
		user.setName("等等cache2");
		user.setId(id);
		return user;
	}


}
